/*
package com.terry.bootdemo.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class TxtransactionInterceptor implements Ordered{

    @Around("execution(* com.terry.bootdemo.service..*(..))")
    public Object around(ProceedingJoinPoint joinPoint){
        return 0;
    }
//    请注意切面实现了 Ordered 接口，这样我们就可以把切面的优先级设定为高于事务通知 （我们每次重试的时候都想要在一个全新的事务中进行）
    @Override
    public int getOrder() {
        return 0;
    }
    //用于匹配指定类型内的方法作为切入点
  */
/*  @Pointcut("within(com.terry.bootdemo.service..*)")
    public void inServiceLayer(){}*//*


    //定义一个annotation为切入点
    @Pointcut("@annotation(com.terry.bootdemo.annotation.SameUrlData)")
    public void simplePointcut() {
    }

    @AfterReturning(pointcut = "simplePointcut()",returning = "result")
    public void simpleAdvice() {
    }
    @After(value = "execution(* com.terry.bootdemo.service..*(..))")
    public void simpleAdvice1() {
    }
    @Before("execution(* com.terry.bootdemo.service..*(..))")
    public void simpleAdvice2() {
    }
    @AfterThrowing(value = "execution(* com.terry.bootdemo.service..*(..))",throwing = "e  ")
    public void simpleAdvice3() {
    }
}
*/
